import json
from alg import Solution

def load_test_cases(filename="test_cases.json"):
    with open(filename, 'r') as f:
        return json.load(f)

def test_algorithm():
    solution = Solution()
    test_cases = load_test_cases()
    
    for i, test_case in enumerate(test_cases):
        turnedOn = test_case["turnedOn"]
        result = solution.readBinaryWatch(turnedOn)
        print(f"Test Case {i + 1}: turnedOn = {turnedOn}")
        print(f"Result: {result}")
        print()

if __name__ == "__main__":
    test_algorithm()